xen.git
20 years agoFlush writable pagetable state before emulating a PT
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 17:27:11 +0000 (18:27 +0100)]
Flush writable pagetable state before emulating a PT
update. Avoids possibility of updating a PTE temporarily
marked writable by ptwr batching logic, which can corrupt
page reference counts. Aiee!

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUse make_lowmem_page_readonly/writable() in preference to the
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 17:13:38 +0000 (18:13 +0100)]
Use make_lowmem_page_readonly/writable() in preference to the
generic functions where appropriate. This prevents us using the
generic functions early during boot, when pte_pfn() does not work
(because max_mapnr is not initialised).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFailure to revalidate a writable pagetable page should crash
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 14:21:16 +0000 (15:21 +0100)]
Failure to revalidate a writable pagetable page should crash
the offending domain, not merely pause it. Also, callers can
now specify another domain to domain_crash().

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix check for a working iptables installation. Checking for the iptables
emellor@leeni.uk.xensource.com [Mon, 14 Nov 2005 11:28:47 +0000 (12:28 +0100)]
Fix check for a working iptables installation.  Checking for the iptables
binary is not sufficient, because the user may not have the appropriate
modules installed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 14 Nov 2005 11:12:29 +0000 (12:12 +0100)]
Merged.

20 years agoAdded line of debugging to try and catch hotplug script race.
emellor@leeni.uk.xensource.com [Mon, 14 Nov 2005 11:11:41 +0000 (12:11 +0100)]
Added line of debugging to try and catch hotplug script race.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoDeclare local variables at the start of a block, not in the middle
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 10:47:38 +0000 (11:47 +0100)]
Declare local variables at the start of a block, not in the middle
(ISO C constraint).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoClean up xenstore/console shared page initialisation, which is
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 10:36:42 +0000 (11:36 +0100)]
Clean up xenstore/console shared page initialisation, which is
now handled solely by the domain builder.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRevert accidentally applied changes from changeset
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 10:35:50 +0000 (11:35 +0100)]
Revert accidentally applied changes from changeset
7783:5aad7e145e501fbfb346954950a33b042a963633.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoTrivial Makefile cleanup for ioemu.
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 10:11:11 +0000 (11:11 +0100)]
Trivial Makefile cleanup for ioemu.

20 years agoAllocate MAC addresses using Xensource Inc's new OUI.
emellor@leeni.uk.xensource.com [Mon, 14 Nov 2005 10:06:25 +0000 (11:06 +0100)]
Allocate MAC addresses using Xensource Inc's new OUI.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoIf /sbin/ isn't in the path, udev rules will erroneously not get
kaf24@firebug.cl.cam.ac.uk [Mon, 14 Nov 2005 10:05:34 +0000 (11:05 +0100)]
If /sbin/ isn't in the path, udev rules will erroneously not get
installed.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
20 years agoThe various changes to move to using info instead of passing the config
emellor@leeni.uk.xensource.com [Sat, 12 Nov 2005 17:59:56 +0000 (18:59 +0100)]
The various changes to move to using info instead of passing the config
sxpr everywhere broke the use of a boot loader for booting with.  The
attached fixes things up so that
a) use of a bootloader ==> kernel not specified in the config file
b) don't cleanup bootloader files until after the domain has booted
c) rerun bootloader on reboot

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoFurther changes to xm.1 man page.
emellor@leeni.uk.xensource.com [Sat, 12 Nov 2005 17:52:16 +0000 (18:52 +0100)]
Further changes to xm.1 man page.

Signed-off-by: Sean Dague <sean@dague.net>
20 years agoFrom Charles Coffing <ccoffing@novell.com>:
emellor@leeni.uk.xensource.com [Sat, 12 Nov 2005 17:41:37 +0000 (18:41 +0100)]
From Charles Coffing <ccoffing@novell.com>:

"make uninstall" was not cleaning up some udev rules.  Also, on x86_64
there was stuff left in /usr/lib/xen, not just /usr/$LIBDIR/xen.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoThe following patch is work in progress to add more meat to the xm.1 man
emellor@leeni.uk.xensource.com [Sat, 12 Nov 2005 17:32:19 +0000 (18:32 +0100)]
The following patch is work in progress to add more meat to the xm.1 man
page.  Expect more content to trickle in over time.

Signed-off-by: Sean Dague <sean@dague.net>
20 years agoThis test was failing for he wrong reason. Calls to block-attach after the
dan@guaranine.beaverton.ibm.com [Sat, 12 Nov 2005 17:25:12 +0000 (18:25 +0100)]
This test was failing for he wrong reason.  Calls to block-attach after the
first *should* report failure, so the test should not fail because of this.
The test now fails because multiple calls to block-attach seem to detach the
block devicem, which is wrong.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoDisable use of mmap. This allows Xenstored to run with an NFS-mounted
emellor@leeni.uk.xensource.com [Sat, 12 Nov 2005 16:51:14 +0000 (17:51 +0100)]
Disable use of mmap.  This allows Xenstored to run with an NFS-mounted
/var/lib/xenstored.  Closes bug #400.  This fix no doubt has a performance hit,
so I have opened bug #401 to discuss a better fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 20:59:33 +0000 (21:59 +0100)]
Merged.

20 years agoNew Xenbus driver structure, bringing an explicit state machine to the table.
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 20:59:05 +0000 (21:59 +0100)]
New Xenbus driver structure, bringing an explicit state machine to the table.
This will make the drivers more robust to failure of the other end, and makes
current driver state more visible.  It also allows us to bring very similar
pieces of code from the drivers together into the xenbus driver.  This should
be the start of a fix to the problem with block and net device hotplugging,
because the code was previously confused about the difference between the
connection state of the kernel device layer, and the state of the xenbus
communication.  This confusion is addressed here.

Much of this work is influenced by Rusty Russell's skeleton driver, recently
posted to xen-devel, as that piece made suggestions as to structure and
arrangement that have been taken on board, albeit pushed down into the xenbus
layer.

A new file xenbus_client.c has been added.  This file implements the interface
between the xenbus layer and the layer specific to the driver.  Access to
lower layers is still allowed for those who do not need all the facilities of
the new driver.

xenbus_dev_error has moved from xenbus_xs.c into xenbus_client.c, and
xenbus_dev_ok has been removed, in favour of xenbus_switch_state.

DevController.py now closes down a device by writing a change to the Closing
state on the backend, to allow the frontend time to close down properly.  Its
also writes the frontend and backend details within the same transaction.

The timeout on the hotplug scripts has been cranked down from 2 minutes to 5
seconds.

The diagnose script has been updated to parse the new states.

The blktab and tpm drivers have yet to be ported to this structure.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAttached patch allows PAE xenlinux to run in the shadow mode using
smh22@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 18:11:13 +0000 (19:11 +0100)]
Attached patch allows PAE xenlinux to run in the shadow mode using
log-dirty guest-refcount, which is required to support
save/restore/relocate. We can turn on/off the mode every 5-sec interval
while doing kernel build (make -j4), for example, and it survives for
hours.

We are still restoring log-dirty mode for x86_64 xenlinux, which is not
very stable right now, but I believe it should be done very soon.

We also checked that it did not break 64-bit VMX domains, which uses
different sub-mode of the shadow mode.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
20 years agoFix make_page_readonly/make_page_writeable on PAE guests - previous behaviour
smh22@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 18:02:49 +0000 (19:02 +0100)]
Fix make_page_readonly/make_page_writeable on PAE guests - previous behaviour
was incorrect when machine address > 4GB. We believe this fixes bugzilla #267.

Also tidy up and fix show_page_walk.

Signed-off-by: Steven Hand <steven@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRename the commands inside the hotplug scripts to match those used by hotplug
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 17:01:44 +0000 (18:01 +0100)]
Rename the commands inside the hotplug scripts to match those used by hotplug
and udev.  Pass all commands through from xen-backend.agent or
xen-backend.rules rather than second-guessing the individual scripts.  This
should make it easier to tear down devices cleanly, especially the dangling
vifs we are seeing at the moment.

Cope with a missing type node inside the block script, as we don't want to
resurrect a removed node by writing a hotplug error message.

Log failure of iptables command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoNew location for code common to both netfront and netback, with the MAC parsing
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 16:59:20 +0000 (17:59 +0100)]
New location for code common to both netfront and netback, with the MAC parsing
pulled here.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoDon't call iptables if it is not installed. This code is only there to ensure
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 16:56:02 +0000 (17:56 +0100)]
Don't call iptables if it is not installed.  This code is only there to ensure
that packets between domU and the bridge are not firewalled, so if iptables is
not installed, then there is no worry.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix function call syntax in vif-route and vif-nat.
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 16:04:17 +0000 (17:04 +0100)]
Fix function call syntax in vif-route and vif-nat.

Function calls in shell script should not contain parenthesis.

Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 14:36:16 +0000 (15:36 +0100)]
Merged.

20 years agoChmod a+x.
emellor@leeni.uk.xensource.com [Fri, 11 Nov 2005 14:36:07 +0000 (15:36 +0100)]
Chmod a+x.

20 years agoMissed two files from NULL-pointer-check changeset.
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 13:54:20 +0000 (14:54 +0100)]
Missed two files from NULL-pointer-check changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove unnecessary NULL checks before freeing memory blocks.
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 11:55:47 +0000 (12:55 +0100)]
Remove unnecessary NULL checks before freeing memory blocks.
The following functions check for NULL internally:
 free, kfree, xfree, free_xenheap_page[s]

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix application of OS patches to deal better with failure.
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 10:16:46 +0000 (11:16 +0100)]
Fix application of OS patches to deal better with failure.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMax xen skbuff allocation is now 64KB. kmem caches only
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 10:01:32 +0000 (11:01 +0100)]
Max xen skbuff allocation is now 64KB. kmem caches only
get populated with objects on first allocation, so if large
caches end up being unused, they don't actually cost us
very much.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge with xen-unstable-ia64.hg
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:47:43 +0000 (10:47 +0100)]
Merge with xen-unstable-ia64.hg

20 years agonloopbacks default is now 8. So vifnum of greater than 7 requires
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:46:36 +0000 (10:46 +0100)]
nloopbacks default is now 8. So vifnum of greater than 7 requires
an adjustment to nloopbacks. Warning comment updated.

Signed-off-by: Nivedita Singhvi (niv@us.ibm.com)
20 years agoAdd MOVSX instr support to VMX MMIO decoder.
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:41:25 +0000 (10:41 +0100)]
Add MOVSX instr support to VMX MMIO decoder.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoRemove unnecessary ifdef in defn of xprintk. Install
kaf24@firebug.cl.cam.ac.uk [Fri, 11 Nov 2005 09:39:20 +0000 (10:39 +0100)]
Remove unnecessary ifdef in defn of xprintk. Install
xenguest.h.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
20 years agoEnable gcc3.4 with CONFIG_SMP (by Alex Williamson)
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 21:24:29 +0000 (15:24 -0600)]
Enable gcc3.4 with CONFIG_SMP (by Alex Williamson)

20 years agoBlkfront no longer built by default, need CONFIG_XEN_BLKDEV_FRONTEND
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 20:02:01 +0000 (14:02 -0600)]
Blkfront no longer built by default, need CONFIG_XEN_BLKDEV_FRONTEND

20 years agoFix Linux fault.c indentation.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 18:43:56 +0000 (19:43 +0100)]
Fix Linux fault.c indentation.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix page-table dump on PAE with >4GB MFNs.
smh22@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 18:32:09 +0000 (19:32 +0100)]
Fix page-table dump on PAE with >4GB MFNs.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMerge with http://xenbits.xensource.com/ext/xen-unstable-docs.hg
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 17:25:27 +0000 (18:25 +0100)]
Merge ... xenbits.xensource.com/ext/xen-unstable-docs.hg

20 years agoMerge
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 16:51:37 +0000 (10:51 -0600)]
Merge

20 years agoAdd "Securing Xen" adapted from Anthony Liguori's Wiki entry.
Robb Romans [Thu, 10 Nov 2005 16:43:24 +0000 (11:43 -0500)]
Add "Securing Xen" adapted from Anthony Liguori's Wiki entry.

20 years agoA few doc cleanups. Replace bitkeeper with mercurial.
Robb Romans [Thu, 10 Nov 2005 16:42:58 +0000 (11:42 -0500)]
A few doc cleanups. Replace bitkeeper with mercurial.

20 years agoReflect various missing traps/faults (flagged with printf for now).
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 16:39:38 +0000 (10:39 -0600)]
Reflect various missing traps/faults (flagged with printf for now).
Without this building xen documentation crashes Xen!
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoThis patch use same expression as vif for vmx guest but has a distinguish "type=ioemu"
Xiaofeng Ling [Thu, 10 Nov 2005 16:07:13 +0000 (17:07 +0100)]
This patch use same expression as vif for vmx guest but has a distinguish "type=ioemu"
just like block device.
e.g. vif=['type=ioemu, mac=01:00:00:00:00:33, bridge=xenbr0']
type=ioemu to specify for vmx NIC device.
nics=4 can specify 4 vmx NIC now.
bridge is passed to device model now.
With this patch, the error
"Error: Device 0 (vif) could not be connected."
will not happen for creating vmx guest
currently, it happens on some linux distribution.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoRemoved autogenerated file.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 15:59:51 +0000 (16:59 +0100)]
Removed autogenerated file.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the log reopening by moving the code with all the races out of the signal
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 15:20:27 +0000 (16:20 +0100)]
Fix the log reopening by moving the code with all the races out of the signal
handler and into the main loop.  The "self-pipe trick" is used to awaken the
select() call on SIGHUP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix typo
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 15:07:47 +0000 (09:07 -0600)]
Fix typo

20 years agoMerge latest xen-unstable into xen-ia64-unstable
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 14:34:09 +0000 (08:34 -0600)]
Merge latest xen-unstable into xen-ia64-unstable

20 years agoAdapt to new evtchn interfaces.
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 14:18:25 +0000 (08:18 -0600)]
Adapt to new evtchn interfaces.
Signed-off-by Kevin Tian <kevin.tian@intel.com>

20 years agoIndirect writes to phys_to_machine_mapping array through an inline
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 14:16:01 +0000 (15:16 +0100)]
Indirect writes to phys_to_machine_mapping array through an inline
function defined in page.h.

For self-migration, I need the ability to trap writes to the p2m map
during migration, because I keep a dictionary mapping mfns to pfns,
which I use for remapping the page tables once I am on the other side.

Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
20 years agoBack out partial fix in ia64-unstable 7665/7/8, breaks Debian boot
djm@kirby.fc.hp.com [Thu, 10 Nov 2005 14:10:18 +0000 (08:10 -0600)]
Back out partial fix in ia64-unstable 7665/7/8, breaks Debian boot

20 years agoWhen creating exception/interrupt stack frames for a guest,
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 14:03:33 +0000 (15:03 +0100)]
When creating exception/interrupt stack frames for a guest,
set saved eflags.IF to !saved_upcall_mask. This allows the
guest to test interrupts-enabled in the interrupted context
in the same way as when running natively.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThis patch fix some issue on masked interrupt:
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:12:00 +0000 (12:12 +0100)]
This patch fix some issue on masked interrupt:
1) check the mask setting on vmx_vioapic_do_irqs and
ioapic_get_highest_irq
2) Place mask info to a seperated data structure, and access it
atomically

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoFix IPI handling before vcpu launched
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:11:39 +0000 (12:11 +0100)]
Fix IPI handling before vcpu launched

When sending IPI, the target vcpu may not be launched (like
INIT/Start-Up IPI), and the local apic is not initialized. Fix handling
on such case.

Also fix one bug in apic_round_robin function.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoFor vmx domain, because shadow_mode_reference is set later in
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:09:17 +0000 (12:09 +0100)]
For vmx domain, because shadow_mode_reference is set later in
vmx_final_setup_guest, so in arch_set_info_guest, the phys_basetab
is not do get_page, while when destroying, put_page is called,
so there is one page, the count=-1, and when a new domain allocate
this page, it will take it as cpumask 0xffffffff, this cause flash_tlb_mask
goes into dead loop.
This patch also eliminate the warning when creating vmx guest:
(XEN) Audit 1: type count went below zero mfn=1e03d t=f0000000 ot=3654b

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAdd some minor defensive coding/error handling in xc_vmx_build.c like
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:06:50 +0000 (12:06 +0100)]
Add some minor defensive coding/error handling in xc_vmx_build.c like
C/S 7687

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:05:22 +0000 (12:05 +0100)]
merge

20 years agoEnable xm console for vmx guest.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:04:29 +0000 (12:04 +0100)]
Enable xm console for vmx guest.
When the serial port is redirect to pty, write the allocated
device to xenstore, then xm console can get it.
TODO:serial port by pty shall not block if there are no reading
on the other end

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoFix some more bugs in pygrub including:
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 11:01:15 +0000 (12:01 +0100)]
Fix some more bugs in pygrub including:
a) a couple of variables were referenced wrong
b) fix using arrow keys in the menu to act correctly
c) and look for grub config properly for /boot partition

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 11:00:39 +0000 (12:00 +0100)]
Merged.

20 years agoVarious chmod a+x.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 11:00:09 +0000 (12:00 +0100)]
Various chmod a+x.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAttached patch fixes a thinko in pygrub's setup.py
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:59:49 +0000 (11:59 +0100)]
Attached patch fixes a thinko in pygrub's setup.py

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoEnable export of set_nmi_callback in suitably priv 64-bit doms.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:58:39 +0000 (11:58 +0100)]
Enable export of set_nmi_callback in suitably priv 64-bit doms.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdates comments in network-bridge, removes dead code, minor typo fixes.
kaf24@firebug.cl.cam.ac.uk [Thu, 10 Nov 2005 10:53:51 +0000 (11:53 +0100)]
Updates comments in network-bridge, removes dead code, minor typo fixes.
Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
20 years agoModularize runtest.sh and add a quick option.
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Modularize runtest.sh and add a quick option.
I broke up runtest.sh into functions which makes it easier to alter its
behavior.  Now, we can easily re-submit a previously-run test report.

20 years agoMake the 04_restore test verify that two block devices and two nics are
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Make the 04_restore test verify that two block devices and two nics are
restored to a working state and that the nics retain their configuration.

20 years agoRemove this accidental commit
danms@us.ibm.com [Thu, 10 Nov 2005 10:48:05 +0000 (11:48 +0100)]
Remove this accidental commit

20 years agoTweak the usage of mke2fs to be quiet, so that the XML reports
dan@guaranine.beaverton.ibm.com [Thu, 10 Nov 2005 10:47:38 +0000 (11:47 +0100)]
Tweak the usage of mke2fs to be quiet, so that the XML reports
contain less garbage

20 years agoAdd this file that wasn't in the tarball for the initial import
danms@us.ibm.com [Thu, 10 Nov 2005 10:47:34 +0000 (11:47 +0100)]
Add this file that wasn't in the tarball for the initial import

20 years agoRemove semicolons from Console.py. It's a habit.
danms@us.ibm.com [Thu, 10 Nov 2005 10:47:27 +0000 (11:47 +0100)]
Remove semicolons from Console.py.  It's a habit.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 10:43:26 +0000 (11:43 +0100)]
Merged.

20 years agoDon't panic for other region physaddr handling in vcpu_translate
djm@kirby.fc.hp.com [Wed, 9 Nov 2005 21:31:01 +0000 (15:31 -0600)]
Don't panic for other region physaddr handling in vcpu_translate

20 years agoDon't panic for (rare) dom0 physaddr with uncacheable attribute
djm@kirby.fc.hp.com [Wed, 9 Nov 2005 20:11:31 +0000 (14:11 -0600)]
Don't panic for (rare) dom0 physaddr with uncacheable attribute

20 years agoFix ia64 tools build (new parameter in xc_vmx_build)
djm@kirby.fc.hp.com [Wed, 9 Nov 2005 18:59:28 +0000 (12:59 -0600)]
Fix ia64 tools build (new parameter in xc_vmx_build)

20 years agoEnable region0 virtual addresss in vcpu_translate (but still broken elsewhere)
djm@kirby.fc.hp.com [Wed, 9 Nov 2005 18:26:17 +0000 (12:26 -0600)]
Enable region0 virtual addresss in vcpu_translate (but still broken elsewhere)
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoFix shadow bitmap sizing for logdirty mode.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 18:18:47 +0000 (19:18 +0100)]
Fix shadow bitmap sizing for logdirty mode.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMove linear faulting address (%cr2) out of the page fault
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 16:23:46 +0000 (17:23 +0100)]
Move linear faulting address (%cr2) out of the page fault
stack frame and into vcpu_info_t (in shared_info_t). This
makes the guest #PF handler much more similar to native.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded missing __init__.py.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:40:07 +0000 (16:40 +0100)]
Added missing __init__.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCope with the ValueError exception that we get if you use Xend with the recent
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:08:37 +0000 (16:08 +0100)]
Cope with the ValueError exception that we get if you use Xend with the recent
change to parsing memory configuration against a store with entries written
by an older Xend.

Added maxmem field to list of things to be read from the store on recreate.

20 years agoSupport recent change moving virtual IOAPIC model into Xen for
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:53:12 +0000 (14:53 +0100)]
Support recent change moving virtual IOAPIC model into Xen for
ia64/VTI. Now ia64/vti will create links to arch/x86/dm/vmx_vioapic.c
and include/x86/vmx_vlapic.h.

Firstly, a small change to common virtual IOAPIC model to be used by
both sides. Also some compilation fix to tools is included in first
one. Secondly, there are ia64-specific changes to hook to common
IOAPIC model.

Based on this patch upon latest xen-ia64-unstable tip, we can see
multiple domains working again on XEN/IA64, including both domU and
VTI domain simultaneously in run-time.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Anthony Xu <Anthony.xu@intel.com>
Signed-off-by Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by Eddie Dong <eddie.dong@intel.com>

20 years agoAttached patch allows building of netfront and blkfront as modules
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:42:15 +0000 (14:42 +0100)]
Attached patch allows building of netfront and blkfront as modules
(xennet.ko and xenblk.ko).

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agognttab_request_free_callback needs to be exported for building modular
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:37 +0000 (14:41 +0100)]
gnttab_request_free_callback needs to be exported for building modular
blkfront

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoRemove use of get_gendisk in blkfront gen_gendisk is no long exported
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:14 +0000 (14:41 +0100)]
Remove use of get_gendisk in blkfront gen_gendisk is no long exported
by 2.6 kernel. Now blkfront can be built as a kernel module.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoAllow xen_create_contiguous_region() to fail gracefully if it
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:39:32 +0000 (14:39 +0100)]
Allow xen_create_contiguous_region() to fail gracefully if it
cannot allocate a contiguous multi-page extent of memory. This
should avoid unnecessary crashes in the xen-specific skbuff
cache constructor.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMore fixes for save/restore; use configured memory for generating sxp.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 12:59:53 +0000 (13:59 +0100)]
More fixes for save/restore; use configured memory for generating sxp.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoThis patch prevents the xm-test console library from duplicating the
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:38 +0000 (12:39 +0100)]
This patch prevents the xm-test console library from duplicating the
debugging output, when it's turned on.  This just makes it easier to
read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a new test that attempts to save and restore a domain
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:05 +0000 (12:39 +0100)]
This patch adds a new test that attempts to save and restore a domain
with a block device attached.  It starts up a domain, mounts a block
device, writes data to it, saves, restores, and then verifies that the
block device can still be read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoChmod a+x.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:38:46 +0000 (12:38 +0100)]
Chmod a+x.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix 64-bit build.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 08:02:59 +0000 (09:02 +0100)]
Fix 64-bit build.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix domU (by Kevin Tian)
djm@kirby.fc.hp.com [Tue, 8 Nov 2005 18:15:55 +0000 (12:15 -0600)]
Fix domU (by Kevin Tian)

20 years agoEnable save/restore for PAE domains.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:42:07 +0000 (18:42 +0100)]
Enable save/restore for PAE domains.

This includes quite a few cleanups / refactoring of the old code, some
of which is intended to prepare for 64-bit save/restore.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoUse '-' instead of '_' in xen version strings.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:39:58 +0000 (18:39 +0100)]
Use '-' instead of '_' in xen version strings.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix alloc_skb() to ensure data is always physically contiguous.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 15:48:42 +0000 (16:48 +0100)]
Fix alloc_skb() to ensure data is always physically contiguous.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRationalise the kernel event-channel binding interfaces. The
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 14:58:31 +0000 (15:58 +0100)]
Rationalise the kernel event-channel binding interfaces. The
new interfaces are simpler and should be implementable by any
architecture.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoIncrease the static constant default number of loopback interfaces, nloopbacks,
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 14:15:02 +0000 (15:15 +0100)]
Increase the static constant default number of loopback interfaces, nloopbacks,
to 8.  These interfaces are very cheap, so there's no problem having a few
spare.  Anyone with more than 8 NICs can still use the kernel command line or
the module parameter line to pass a larger limit to this module.

Detail the kernel command line parameter for nloopbacks in the diagnostic in
network-bridge.

Closes bug #381.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:56:14 +0000 (14:56 +0100)]
Merged.

20 years agoFix two leaks in the pyxc interface. The dictionaries are being added
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:53:27 +0000 (14:53 +0100)]
Fix two leaks in the pyxc interface. The dictionaries are being added
to lists, and an extra ref was being left behind.

Signed-off-by: Sean Perry <sean@xensource.com>
Signed-off-by: Robert Read <robert@xensource.com>
20 years agomerge
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 13:41:25 +0000 (14:41 +0100)]
merge